themingengine: set the cairo extend to PAD when we're stretching bg
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 8 Nov 2011 17:36:55 +0000 (12:36 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 8 Nov 2011 17:41:28 +0000 (12:41 -0500)
This avoids artifacts around the borders due to bilinear filtering cairo
applies to the surface pattern when stretching it.

https://bugzilla.gnome.org/show_bug.cgi?id=663522

gtk/gtkthemingengine.c

index 8d6da01018860df8a3ef3dad7e88d1984854eab9..f068c3d38dbb9412beb53e5b9d1239acf4877439 100644 (file)
@@ -1622,6 +1622,7 @@ render_background_internal (GtkThemingEngine *engine,
         }
       else
         {
+          cairo_pattern_set_extend (pattern, CAIRO_EXTEND_PAD);
           scale_width = width;
           scale_height = height;
         }